go/scanner.Scanner.error (method)
21 uses
go/scanner (current package)
scanner.go#L71: s.error(s.offset, "illegal character NUL")
scanner.go#L76: s.error(s.offset, "illegal UTF-8 encoding")
scanner.go#L78: s.error(s.offset, "illegal byte order mark")
scanner.go#L151: func (s *Scanner) error(offs int, msg string) {
scanner.go#L159: s.error(offs, fmt.Sprintf(format, args...))
scanner.go#L201: s.error(offs, "comment not terminated")
scanner.go#L250: s.error(offs+i, "invalid line number: "+string(text[i:]))
scanner.go#L261: s.error(offs+i2, "invalid column number: "+string(text[i2:]))
scanner.go#L271: s.error(offs+i, "invalid line number: "+string(text[i:]))
scanner.go#L487: s.error(s.offset, "invalid radix point in "+litname(prefix))
scanner.go#L494: s.error(s.offset, litname(prefix)+" has no digits")
scanner.go#L513: s.error(s.offset, "exponent has no digits")
scanner.go#L516: s.error(s.offset, "hexadecimal mantissa requires a 'p' exponent")
scanner.go#L531: s.error(offs+i, "'_' must separate successive digits")
scanner.go#L619: s.error(offs, msg)
scanner.go#L631: s.error(s.offset, msg)
scanner.go#L640: s.error(offs, "escape sequence is invalid Unicode code point")
scanner.go#L658: s.error(offs, "rune literal not terminated")
scanner.go#L677: s.error(offs, "illegal rune literal")
scanner.go#L690: s.error(offs, "string literal not terminated")
scanner.go#L730: s.error(offs, "raw string literal not terminated")